#ifndef __ALGO_FILTER_H__
#define __ALGO_FILTER_H__
#include "stdint.h"
int b_algo_average(int in_data, int *out_data, uint16_t *avg_count, int *avg_buff,
                   uint16_t avg_length);
int b_algo_moving_average(int in_data, int *filter_buff, uint16_t moving_length, int *diff);
typedef struct
{
    int     limter_cnt;
    int     elimination_cnt;
    int     last_data;
    uint8_t dir;

    /* data */
} b_algo_limter_elimination_t;

int b_algo_limter_elimination(b_algo_limter_elimination_t *self, int in_data, int limter,
                              int elimination);

#endif
